-- GENERATED SPELL FOR [Xavian Betrayer] --


function spell0_3754(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(5242,pUnit)
pUnit:RegisterEvent('Sorts_3754', 613, 1)
end

function spell1_3754(pUnit, Event) --@Gift of the Xavian,Self--
pUnit:FullCastSpellOnTarget(6925,pUnit)
pUnit:RegisterEvent('Sorts_3754', 5000, 1)
end

function Sorts_3754(pUnit, Event)
local choix_sorts_3754 = math.random(0, 1)
if choix_sorts_3754 == 0 then
pUnit:RegisterEvent('spell0_3754', 1, 1)
end
if choix_sorts_3754 == 1 then
pUnit:RegisterEvent('spell1_3754', 1, 1)
end
end

function mob3754_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3754', math.random(1500, 3000), 1)
end

function mob3754_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3754_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3754_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3754, 1, 'mob3754_Action')
RegisterUnitEvent(3754, 2, 'mob3754_Leave')
RegisterUnitEvent(3754, 3, 'mob3754_Kill')
RegisterUnitEvent(3754, 4, 'mob3754_Die')
